home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / Bonus / Plasmatech / ptscp_eval.exe / %MAINDIR% / EvalC4 / UPTImageCombo.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-08-31  |  10.9 KB  |  341 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1999 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'UPTImageCombo.pas' rev: 4.00
  6.  
  7. #ifndef UPTImageComboHPP
  8. #define UPTImageComboHPP
  9.  
  10. #pragma delphiheader begin
  11. #pragma option push -w-
  12. #include <Menus.hpp>    // Pascal unit
  13. #include <StdCtrls.hpp>    // Pascal unit
  14. #include <ImgList.hpp>    // Pascal unit
  15. #include <Dialogs.hpp>    // Pascal unit
  16. #include <Forms.hpp>    // Pascal unit
  17. #include <Controls.hpp>    // Pascal unit
  18. #include <Graphics.hpp>    // Pascal unit
  19. #include <Classes.hpp>    // Pascal unit
  20. #include <SysUtils.hpp>    // Pascal unit
  21. #include <Messages.hpp>    // Pascal unit
  22. #include <Windows.hpp>    // Pascal unit
  23. #include <SysInit.hpp>    // Pascal unit
  24. #include <System.hpp>    // Pascal unit
  25.  
  26. //-- user supplied -----------------------------------------------------------
  27.  
  28. namespace Uptimagecombo
  29. {
  30. //-- type declarations -------------------------------------------------------
  31. class DELPHICLASS TPTImageComboItem;
  32. class DELPHICLASS TPTCustomImageCombo;
  33. class DELPHICLASS TPTCustomCombobox;
  34. typedef void __fastcall (__closure *TPTDeleteComboItemEvent)(System::TObject* aSender, void * aItem)
  35.     ;
  36.  
  37. #pragma pack(push, 4)
  38. class PASCALIMPLEMENTATION TPTCustomCombobox : public Stdctrls::TCustomComboBox 
  39. {
  40.     typedef Stdctrls::TCustomComboBox inherited;
  41.     
  42. private:
  43.     TPTDeleteComboItemEvent mOnDeleteItemProc;
  44.     Classes::TNotifyEvent mOnCloseUpProc;
  45.     Classes::TNotifyEvent mOnSelEndCancelProc;
  46.     Classes::TNotifyEvent mOnSelEndOkProc;
  47.     void __fastcall SetItemHeight2(int aValue);
  48.     HIDESBASE MESSAGE void __fastcall CNCommand(Messages::TWMCommand &aMsg);
  49.     HIDESBASE MESSAGE void __fastcall WMDeleteItem(Messages::TWMDeleteItem &amsg);
  50.     
  51. protected:
  52.     virtual void __fastcall DeleteItem(void * aItem);
  53.     DYNAMIC void __fastcall CloseUp(void);
  54.     DYNAMIC void __fastcall SelEndCancel(void);
  55.     DYNAMIC void __fastcall SelEndOk(void);
  56.     __property TPTDeleteComboItemEvent OnDeleteItem = {read=mOnDeleteItemProc, write=mOnDeleteItemProc}
  57.         ;
  58.     __property Classes::TNotifyEvent OnCloseUp = {read=mOnCloseUpProc, write=mOnCloseUpProc};
  59.     __property Classes::TNotifyEvent OnSelEndCancel = {read=mOnSelEndCancelProc, write=mOnSelEndCancelProc
  60.         };
  61.     __property Classes::TNotifyEvent OnSelEndOk = {read=mOnSelEndOkProc, write=mOnSelEndOkProc};
  62.     __property ItemHeight  = {write=SetItemHeight2};
  63. public:
  64.     #pragma option push -w-inl
  65.     /* TCustomComboBox.Create */ inline __fastcall virtual TPTCustomCombobox(Classes::TComponent* AOwner
  66.         ) : Stdctrls::TCustomComboBox(AOwner) { }
  67.     #pragma option pop
  68.     #pragma option push -w-inl
  69.     /* TCustomComboBox.Destroy */ inline __fastcall virtual ~TPTCustomCombobox(void) { }
  70.     #pragma option pop
  71.     
  72. public:
  73.     #pragma option push -w-inl
  74.     /* TWinControl.CreateParented */ inline __fastcall TPTCustomCombobox(HWND ParentWindow) : Stdctrls::TCustomComboBox(
  75.         ParentWindow) { }
  76.     #pragma option pop
  77.     
  78. };
  79.  
  80. #pragma pack(pop)
  81.  
  82. typedef void __fastcall (__closure *TPTDeleteImageComboItemEvent)(System::TObject* aSender, TPTImageComboItem* 
  83.     aItem);
  84.  
  85. typedef void __fastcall (__closure *TPTImageComboGetItemDataEvent)(System::TObject* aSender, TPTImageComboItem* 
  86.     aItem);
  87.  
  88. #pragma pack(push, 4)
  89. class PASCALIMPLEMENTATION TPTCustomImageCombo : public TPTCustomCombobox 
  90. {
  91.     typedef TPTCustomCombobox inherited;
  92.     
  93. private:
  94.     bool mAutoSizeHeight;
  95.     Controls::TImageList* mImageList;
  96.     int mIndentPixels;
  97.     TPTDeleteImageComboItemEvent mOnDeleteImageComboItemProc;
  98.     TPTImageComboGetItemDataEvent mOnGetItemDataProc;
  99.     bool mfInWMSetFont;
  100.     TPTImageComboItem* __fastcall GetImageComboItem(int index);
  101.     HIDESBASE MESSAGE void __fastcall CNDrawItem(Messages::TWMDrawItem &aMsg);
  102.     HIDESBASE MESSAGE void __fastcall WMEraseBkgnd(Messages::TWMEraseBkgnd &aMsg);
  103.     MESSAGE void __fastcall WMSetFont(Messages::TWMSetFont &aMsg);
  104.     
  105. protected:
  106.     void __fastcall DoAutoSize(HFONT hf);
  107.     HIDESBASEDYNAMIC void __fastcall AutoSize(HFONT hf);
  108.     void __fastcall SetIndentPixels(int aValue);
  109.     void __fastcall SetImageList(const Controls::TImageList* aValue);
  110.     virtual void __fastcall CreateParams(Controls::TCreateParams &p);
  111.     virtual void __fastcall CreateWnd(void);
  112.     virtual void __fastcall DestroyWnd(void);
  113.     virtual void __fastcall DrawItem(int aIndex, const Windows::TRect &aRect, Stdctrls::TOwnerDrawState 
  114.         aState);
  115.     virtual void __fastcall Notification(Classes::TComponent* aComponent, Classes::TOperation operation
  116.         );
  117.     virtual void __fastcall DeleteItem(void * aItem);
  118.     virtual void __fastcall GetItemData(TPTImageComboItem* AItem);
  119.     __property Text  = {stored=false};
  120.     __property bool AutoSizeHeight = {read=mAutoSizeHeight, write=mAutoSizeHeight, default=1};
  121.     __property int IndentPixels = {read=mIndentPixels, write=SetIndentPixels, default=12};
  122.     __property Controls::TImageList* ImageList = {read=mImageList, write=SetImageList};
  123.     __property TPTDeleteImageComboItemEvent OnDeleteItem = {read=mOnDeleteImageComboItemProc, write=mOnDeleteImageComboItemProc
  124.         };
  125.     __property TPTImageComboGetItemDataEvent OnGetItemData = {read=mOnGetItemDataProc, write=mOnGetItemDataProc
  126.         };
  127.     
  128. public:
  129.     __fastcall virtual TPTCustomImageCombo(Classes::TComponent* aOwner);
  130.     __fastcall virtual ~TPTCustomImageCombo(void);
  131.     virtual TPTImageComboItem* __fastcall AddItem(AnsiString aCaption, int aImageIndex, int aIndent);
  132.     __property TPTImageComboItem* ImageComboItem[int index] = {read=GetImageComboItem};
  133. public:
  134.     #pragma option push -w-inl
  135.     /* TWinControl.CreateParented */ inline __fastcall TPTCustomImageCombo(HWND ParentWindow) : TPTCustomCombobox(
  136.         ParentWindow) { }
  137.     #pragma option pop
  138.     
  139. };
  140.  
  141. #pragma pack(pop)
  142.  
  143. #pragma pack(push, 4)
  144. class PASCALIMPLEMENTATION TPTImageComboItem : public System::TObject 
  145. {
  146.     typedef System::TObject inherited;
  147.     
  148. protected:
  149.     TPTCustomImageCombo* mOwner;
  150.     int mItemIndex;
  151.     int mIndex;
  152.     int mIndent;
  153.     int mImageIndex;
  154.     int mOverlayIndex;
  155.     AnsiString mCaption;
  156.     int mTag;
  157.     void *mData;
  158.     void __fastcall SetIndent(int aValue);
  159.     void __fastcall SetImageIndex(int aValue);
  160.     void __fastcall SetCaption(const AnsiString aValue);
  161.     void __fastcall SetOverlayIndex(int aValue);
  162.     
  163. public:
  164.     __fastcall TPTImageComboItem(TPTCustomImageCombo* aOwner);
  165.     __fastcall virtual ~TPTImageComboItem(void);
  166.     __property int Index = {read=mIndex, nodefault};
  167.     __property int Indent = {read=mIndent, write=SetIndent, nodefault};
  168.     __property int ImageIndex = {read=mImageIndex, write=SetImageIndex, nodefault};
  169.     __property int OverlayIndex = {read=mOverlayIndex, write=SetOverlayIndex, nodefault};
  170.     __property AnsiString Caption = {read=mCaption, write=SetCaption};
  171.     __property void * Data = {read=mData, write=mData};
  172.     __property int Tag = {read=mTag, write=mTag, nodefault};
  173. };
  174.  
  175. #pragma pack(pop)
  176.  
  177. class DELPHICLASS TPTCombobox;
  178. #pragma pack(push, 4)
  179. class PASCALIMPLEMENTATION TPTCombobox : public TPTCustomCombobox 
  180. {
  181.     typedef TPTCustomCombobox inherited;
  182.     
  183. __published:
  184.     __property Style ;
  185.     __property Color ;
  186.     __property Ctl3D ;
  187.     __property DragMode ;
  188.     __property DragCursor ;
  189.     __property DropDownCount ;
  190.     __property Enabled ;
  191.     __property Font ;
  192.     __property ItemHeight ;
  193.     __property Items ;
  194.     __property MaxLength ;
  195.     __property ParentColor ;
  196.     __property ParentCtl3D ;
  197.     __property ParentFont ;
  198.     __property ParentShowHint ;
  199.     __property PopupMenu ;
  200.     __property ShowHint ;
  201.     __property Sorted ;
  202.     __property TabOrder ;
  203.     __property TabStop ;
  204.     __property Text ;
  205.     __property Visible ;
  206.     __property OnChange ;
  207.     __property OnClick ;
  208.     __property OnDblClick ;
  209.     __property OnDragDrop ;
  210.     __property OnDragOver ;
  211.     __property OnDrawItem ;
  212.     __property OnDropDown ;
  213.     __property OnEndDrag ;
  214.     __property OnEnter ;
  215.     __property OnExit ;
  216.     __property OnKeyDown ;
  217.     __property OnKeyPress ;
  218.     __property OnKeyUp ;
  219.     __property OnMeasureItem ;
  220.     __property OnStartDrag ;
  221.     __property OnDeleteItem ;
  222.     __property OnCloseUp ;
  223.     __property OnSelEndCancel ;
  224.     __property OnSelEndOk ;
  225.     __property Anchors ;
  226.     __property Constraints ;
  227.     __property DragKind ;
  228.     __property ImeMode ;
  229.     __property ImeName ;
  230.     __property BiDiMode ;
  231.     __property ParentBiDiMode ;
  232.     __property OnEndDock ;
  233.     __property OnStartDock ;
  234. public:
  235.     #pragma option push -w-inl
  236.     /* TCustomComboBox.Create */ inline __fastcall virtual TPTCombobox(Classes::TComponent* AOwner) : TPTCustomCombobox(
  237.         AOwner) { }
  238.     #pragma option pop
  239.     #pragma option push -w-inl
  240.     /* TCustomComboBox.Destroy */ inline __fastcall virtual ~TPTCombobox(void) { }
  241.     #pragma option pop
  242.     
  243. public:
  244.     #pragma option push -w-inl
  245.     /* TWinControl.CreateParented */ inline __fastcall TPTCombobox(HWND ParentWindow) : TPTCustomCombobox(
  246.         ParentWindow) { }
  247.     #pragma option pop
  248.     
  249. };
  250.  
  251. #pragma pack(pop)
  252.  
  253. class DELPHICLASS TPTImageCombo;
  254. #pragma pack(push, 4)
  255. class PASCALIMPLEMENTATION TPTImageCombo : public TPTCustomImageCombo 
  256. {
  257.     typedef TPTCustomImageCombo inherited;
  258.     
  259. __published:
  260.     __property AutoSizeHeight ;
  261.     __property IndentPixels ;
  262.     __property ImageList ;
  263.     __property OnDeleteItem ;
  264.     __property OnCloseUp ;
  265.     __property OnSelEndCancel ;
  266.     __property OnSelEndOk ;
  267.     __property OnGetItemData ;
  268.     __property Color ;
  269.     __property Ctl3D ;
  270.     __property DragMode ;
  271.     __property DragCursor ;
  272.     __property DropDownCount ;
  273.     __property Enabled ;
  274.     __property Font ;
  275.     __property ItemHeight ;
  276.     __property MaxLength ;
  277.     __property ParentColor ;
  278.     __property ParentCtl3D ;
  279.     __property ParentFont ;
  280.     __property ParentShowHint ;
  281.     __property PopupMenu ;
  282.     __property ShowHint ;
  283.     __property Sorted ;
  284.     __property TabOrder ;
  285.     __property TabStop ;
  286.     __property Visible ;
  287.     __property OnChange ;
  288.     __property OnClick ;
  289.     __property OnDblClick ;
  290.     __property OnDragDrop ;
  291.     __property OnDragOver ;
  292.     __property OnDrawItem ;
  293.     __property OnDropDown ;
  294.     __property OnEndDrag ;
  295.     __property OnEnter ;
  296.     __property OnExit ;
  297.     __property OnKeyDown ;
  298.     __property OnKeyPress ;
  299.     __property OnKeyUp ;
  300.     __property OnMeasureItem ;
  301.     __property OnStartDrag ;
  302.     __property Anchors ;
  303.     __property Constraints ;
  304.     __property DragKind ;
  305.     __property ImeMode ;
  306.     __property ImeName ;
  307.     __property BiDiMode ;
  308.     __property ParentBiDiMode ;
  309.     __property OnEndDock ;
  310.     __property OnStartDock ;
  311. public:
  312.     #pragma option push -w-inl
  313.     /* TPTCustomImageCombo.Create */ inline __fastcall virtual TPTImageCombo(Classes::TComponent* aOwner
  314.         ) : TPTCustomImageCombo(aOwner) { }
  315.     #pragma option pop
  316.     #pragma option push -w-inl
  317.     /* TPTCustomImageCombo.Destroy */ inline __fastcall virtual ~TPTImageCombo(void) { }
  318.     #pragma option pop
  319.     
  320. public:
  321.     #pragma option push -w-inl
  322.     /* TWinControl.CreateParented */ inline __fastcall TPTImageCombo(HWND ParentWindow) : TPTCustomImageCombo(
  323.         ParentWindow) { }
  324.     #pragma option pop
  325.     
  326. };
  327.  
  328. #pragma pack(pop)
  329.  
  330. //-- var, const, procedure ---------------------------------------------------
  331.  
  332. }    /* namespace Uptimagecombo */
  333. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  334. using namespace Uptimagecombo;
  335. #endif
  336. #pragma option pop    // -w-
  337.  
  338. #pragma delphiheader end.
  339. //-- end unit ----------------------------------------------------------------
  340. #endif    // UPTImageCombo
  341.